package dlg.code.state.context.service.impl;

import dlg.code.state.context.service.AbstractOrderStateService;
import dlg.code.state.context.service.IReminderService;
import dlg.code.state.domain.OrderInfo;
import dlg.code.state.enums.OrderStateEnum;
import dlg.code.state.enums.ReminderStageEnum;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class PaidOrderStateService extends AbstractOrderStateService {
    private final static Logger log = LoggerFactory.getLogger(PaidOrderStateService.class);

    public PaidOrderStateService() {
        orderStateEnum = OrderStateEnum.PAID;
    }

    @Override
    public boolean reminder(OrderInfo orderInfo) {
        IReminderService reminderService = getReminderService(ReminderStageEnum.AFTER_PAID);
        reminderService.reminder(orderInfo);
        return true;
    }
}
